package com.swh.xbsc.entity;



import javax.persistence.*;

@Table(name = "user_focus")
public class UserFocus {
    /**
     * 用户id
     */
    @Id
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 用户关注的朋友id
     */
    @Id
    @Column(name = "user_focus_id")
    private Integer userFocusId;


    @Transient
    private String realName;



    @Override
    public String toString() {
        return "UserFocus{" +
                "userId=" + userId +
                ", userFocusId=" + userFocusId +
                ", realName='" + realName + '\'' +
                '}';
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */


    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取用户关注的朋友id
     *
     * @return user_focus_id - 用户关注的朋友id
     */
    public Integer getUserFocusId() {
        return userFocusId;
    }

    /**
     * 设置用户关注的朋友id
     *
     * @param userFocusId 用户关注的朋友id
     */
    public void setUserFocusId(Integer userFocusId) {
        this.userFocusId = userFocusId;
    }
}